/**
 * Created by wumu on 5/30/18.
 */
import fetch from '../utils/fetch'


export function login(data) {
    return fetch({
        url:'/user/login',
        method:'post',
        data
    })
}
export function getUserInfo() {
    return fetch({
        url:'/user/getuser',
        method:'get'
    })
}

export function logout() {
    return fetch({
        url:'/user/logout',
        method:'get'
    })
}
